<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta
            name="viewport"
            content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
    >
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>变量内存</title>
</head>
<body>
<script>
    const cusObj = {
        name: "aj",
        age: 12,
        addrs: ["henan", "beijing"]
    }
    function smallFunc(){
        console.log("this is small Func");
    }
    function largeFunc(){
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        console.log("this is large Func");
        for (let i = 0; i < 10000000; i++) {
            window.arr || (window.arr = []);
            window.arr.push({count:i});
        }
    }
</script>
</body>
</html>